import axios from 'axios'
let instance = axios.create({
  baseURL:'/admin-api/system',
  timeout: 300000,
  withCredentials:true,
});

instance.interceptors.request.use(config => {// 添加请求拦截器
  return config;
}, error => {

  return Promise.reject(error)
})
instance.interceptors.response.use((response) => {
  return response.data;
}, error => {
  return Promise.reject(error)
});// 添加响应拦截器

export default instance
